<?php
/**
 * Company model
 * 
 * @author Mirche
 * @version 0.1
 *
 */
class Company extends AppModel{
	
	var $name = "Company";
	
	var $hasMany = array(
        'Objekt' => array(
            'className'  => 'Objekt'
        )
    );
	
	
	/**
	 * Every company belongs to a city
	 * @var array
	 */
	var $belongsTo = array(
        'City' => array(
            'className'    => 'City',
            'foreignKey'    => 'city_id'
        ),
        'User' => array(
            'className'    => 'User',
            'foreignKey'    => 'user_id'
        )
    );  
	
	
}